@extends('admin.layout.basic')
@section('content')
        <!-- 面包屑 -->
@include('admin.layout.breadcrumb')
<div class="wrapper wrapper-content animated fadeInUp">


    {{--'filecontents_edit'=>'内容编辑',--}}
    {{--'filecontents_name'=>'URL名称',--}}
    {{--'filecontents_title'=>'菜单名称',--}}
    {{--'filecontents_parent'=>'父菜单名称',--}}
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div id="fileeditcontent" class="ibox-content">
                    <input type="hidden"  id="id" value="{{isset($content)? $content->id:""}}" name="id">
                    <input type="hidden" id="parent_id" value="{{isset($content)? $content->parent_id:""}}" name="parent_id">
                    <fieldset class="form-horizontal">
                        <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.filecontents_title")}}:</label>
                            <div class="col-sm-10"><input type="text" id="title"  value="{{isset($content)? $content->title:""}}"  name="title" class="form-control"></div>
                        </div>

                        <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.filecontents_name")}}:</label>
                            <div class="col-sm-10"><input type="text" id="name" value="{{isset($content)? $content->name:""}}"  name="name" class="form-control"></div>
                        </div>

                        <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.filecontents_parent")}}:</label>
                            <div class="col-sm-8"><input type="text" id="parent_name" value="{{isset($content)? $content->parent_name:""}}"   disabled  name="parent_name" class="form-control"></div>
                            <button type="button" onclick="admin_fileedit_list.openModel()" class="btn btn-success">{{trans("admin/message.chose")}}</button>
                        </div>
                        <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.filecontents_is_show")}}:</label>
                            <div class="col-sm-10">
                                <div class="i-checks"><label> <input type="checkbox" id="is_show" name="is_show" {{ isset($content) ? ($content->is_show == 1? "checked":"") : '' }} ></label></div> </div>
                        </div>
                        <div class="form-group"><label class="col-sm-2 control-label">{{trans("admin/message.site_content_edit_content")}}:</label>
                            <div class="col-sm-10">
                                <div id="file_content" class="summernote">
                                    {!! isset($content)? $content->page_content:""  !!}
                                </div>
                            </div>

                        </div>

                   </fieldset>

                </div>


                <div class="col-lg-12 ibox-content  text-center">

                    <button type="button" onclick="admin_fileedit_list.save()" class="btn btn-w-m btn-success">{{ trans('admin/message.submit') }}</button>
                    <button   type="button" style="display: {{isset($content)? "inline":"none"}}"   onclick="admin_fileedit_list.delete('{{isset($content)?  $content->id:""}}')"class="btn btn-w-m btn-danger">{{ trans('admin/message.delete') }}</button>
                </div>

            </div>
        </div>




    </div>



</div>

@include('admin.sys.modules.contentParent')
@endsection




